<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <link rel="stylesheet" href="../font-awesome/css/font-awesome.min.css">
    <link rel="stylesheet" href="../css/indexStyle.css">

</head>
<body>
<!--导航栏-->
<div th:replace="~{header :: header}"></div>

<div>

        <div th:each="address:${addresses}">
            <form th:action="@{/cart/addOrdersFromCartAndTOPay}" method="post">
                <input name="cartId" type="hidden" th:value="${cartId}">
                <input name="userAddressId" type="hidden" th:value="${address.getUserAddressId()}"><br>
                姓   名：<div th:text="${address.getRealName()}"></div>
                电话号码：<div th:text="${address.getTelephone()}"></div>
                地   址：<div th:text="${address.getAddress()}"></div>
                <input type="submit" value="使用">
            </form>
        </div>

</div>
</body>
</html>